﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using GSLMS.Entity;
namespace GSLMS.Services.Interface
{
	/// <summary>
	/// 接口说明:TB_APP_PROCOMINFO接口
	/// </summary>
	[ServiceContract(Name = "IAPP_PROCOMINFO", Namespace = "http://www.gslms.com/")]
	public interface IAPP_PROCOMINFO : IBase<TB_APP_PROCOMINFO>
	{
        /// <summary>
        /// 通过立项申请记录ID提取确认方案信息
        /// </summary>
        /// <param name="proID"></param>
        /// <returns></returns>
        [OperationContract]
        List<GSLMS.Entity.TB_APP_PROCOMINFO> GetAllList(long proID);

        /// <summary>
        /// 确认立项申请的方案信息
        /// </summary>
        /// <param name="model">传入PROID,PROGID,CONFIRMBY,REMARK</param>
        /// <returns></returns>
        [OperationContract]
        bool ConfrimSolu(GSLMS.Entity.TB_APP_PROCOMINFO model);

        /// <summary>
        /// 立项申请确认方案时退回
        /// </summary>
        /// <param name="proID"></param>
        /// <param name="backBy"></param>
        /// <param name="backReason"></param>
        /// <returns></returns>
        [OperationContract]
        bool BackTo(long proID, string backBy, string backReason);

        /// <summary>
        /// 验证是否已经确认方案信息
        /// </summary>
        /// <param name="proID">立项申请记录ID</param>
        /// <returns></returns>
       [OperationContract]
        bool IsSolued(long proID);

        /// <summary>
        /// 通过立项申请记录ID提取已经确认方案信息
        /// </summary>
        /// <param name="proID"></param>
        /// <returns></returns>
        [OperationContract]
        GSLMS.Entity.TB_APP_PROCOMINFO GetConfirmProComInfo(long proID);
	}
}
